home *** CD-ROM | disk | FTP | other *** search
/ Interactive Media Design Review 1999 / Interactive Media Design Review 1999.iso / pc / allfiles / Centri / Centri.dir / 00289_Shrink.ls < prev    next >
Encoding:
Text File  |  1999-02-25  |  1.2 KB  |  24 lines

  1. property origSprite, csprite1, csprite2, csprite3
  2.  
  3. on mouseUp me
  4.   set the stretch of sprite origSprite to 1
  5.   set the stretch of sprite csprite1 to 1
  6.   set the stretch of sprite csprite2 to 1
  7.   set the stretch of sprite csprite3 to 1
  8.   set the width of sprite origSprite to the width of sprite origSprite / 1.19999999999999996
  9.   set the width of sprite csprite1 to the width of sprite csprite3
  10.   set the width of sprite csprite2 to the width of sprite csprite3
  11.   set the width of sprite csprite3 to the width of sprite csprite3 / 1.19999999999999996
  12.   set the height of sprite origSprite to the height of sprite origSprite / 1.19999999999999996
  13.   set the height of sprite csprite1 to the width of sprite csprite3
  14.   set the height of sprite csprite2 to the width of sprite csprite3
  15.   set the height of sprite csprite3 to the width of sprite csprite3
  16.   updateStage()
  17.   puppetSound(2, "click")
  18. end
  19.  
  20. on getPropertyDescriptionList
  21.   set p_list to [#origSprite: [#comment: "  Screen 1:", #format: #integer, #default: 1], #csprite1: [#comment: " Control Sprite 1:", #format: #integer, #default: 1], #csprite2: [#comment: " Control Sprite 2:", #format: #integer, #default: 2], #csprite3: [#comment: " Control Sprite 3:", #format: #integer, #default: 3]]
  22.   return p_list
  23. end
  24.